﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;



namespace Model
{
    /// <summary>
    /// 景点类
    /// </summary>
    public class Destination
    {
        public int DestinationId { get; set; }
        //Data Annotations 方式配置数据库 添加引用 using System.ComponentModel.DataAnnotations
        [Required]
        public string Name { get; set; }
        public string Country { get; set; }
        public string Description { get; set; }
        public byte[] Photo { get; set; }

        public List<Lodging> Lodgings { get; set; }

    }
}
